<template name="importOperationSummary">
		<span style="font-weight: 600;">{{_ "Import_Type"}}:</span>
		<span>{{ type}} [{{ importerKey}}]</span>
		<br/>

		<span style="font-weight: 600;">{{_ "Last_Updated"}}:</span>
		<span>{{ lastUpdated}}</span>
		<br/>

		{{#if valid}}
			<span style="font-weight: 600;">{{_ "Status"}}:</span>
		{{else}}
			<span style="font-weight: 600;">{{_ "Last_Status"}}:</span>
		{{/if}}

		<span>{{ status}}</span>
		<br/>

		{{#if file}}
			<span style="font-weight: 600;">{{_ "File"}}:</span>
			<span>{{ fileName}}</span>
			<br/>
		{{/if}}

		{{#if hasCounters}}
			<span style="font-weight: 600;">{{_ "Counters"}}:</span>
			<br/>

			<span>{{_ "Users"}}:</span>
			<span>{{ userCount}}</span>
			<br/>
			<span>{{_ "Channels"}}:</span>
			<span>{{ channelCount}}</span>
			<br/>
			<span>{{_ "Messages"}}:</span>
			<span>{{ messageCount}}</span>
			<br/>
			<span>{{_ "Total"}}:</span>
			<span>{{ totalCount}}</span>
			<br/>

			<br/>
		{{/if}}

		{{#if hasErrors}}
			<h2>{{_ "Errors_and_Warnings"}}:</h2>
			<br/>

			{{#if fileData.users}}
				{{#each fileData.users}}
					{{#if is_email_taken}}
						<span style="color: red;">{{_ "Email_already_exists"}}:</span>
						<span>{{ email}}</span>
						<br/>
					{{/if}}

					{{#if error}}
						<span>{{ email}}:</span>
						<span style="color: red;">{{ formatedError}}</span>
						<br/>
					{{/if}}

				{{/each}}
			{{/if}}

			{{#if errors}}
				<br/>
				<br/>
				<h3>{{_ "Not_Imported_Messages_Title"}}</h3>
				<br/>
				{{#each errors}}
					<br/>
					{{#if msg}}
						{{#if msg.id}}
							<span style="font-weight: 600;">{{_ "Message_Id"}}:</span>
							<span>{{ msg.id}}</span>
							<br/>
						{{/if}}
						{{#if msg.userId}}
							<span style="font-weight: 600;">{{_ "Message_UserId"}}:</span>
							<span>{{ msg.userId}}</span>
							<br/>
						{{/if}}
						{{#if msg.ts}}
							<span style="font-weight: 600;">{{_ "Message_Time"}}:</span>
							<span>{{ messageTime}}</span>
							<br/>
						{{/if}}
					{{/if}}
					{{#if error}}
						{{#if error.error}}
							<span style="font-weight: 500;">{{_ "Error"}}:</span>
							<span style="color: red;">{{ error.error}}:</span>
							<br/>
						{{/if}}
						{{#if error.message}}
							<span style="font-weight: 500;">{{_ "Message"}}:</span>
							<span style="color: red;">{{ error.message}}:</span>
							<br/>
						{{/if}}
						{{#if error.details}}
							{{#if error.details.method}}
								<span style="font-weight: 500;">{{_ "Method"}}:</span>
								<span style="color: red;">{{ error.details.method}}:</span>
								<br/>
							{{/if}}
						{{/if}}
					{{/if}}
				{{/each}}
			{{/if}}

			<br/>
		{{/if}}

</template>
